﻿@using System.Threading
@using System.Web.Optimization
@using Abp.Timing
@using Abp.Web.Mvc.Extensions
@{
    Layout = null;
}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>PRM</title>
    @*<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />*@
    <link href="~/Content/font-awesome.min.css" rel="stylesheet" />
    @*ext引用*@
    <script src="~/libs/jquery/jquery.min.js"></script>
    <script src="/Content/ExtJs/ext-bootstrap.js"></script>
    <script src="/Content/ExtJs/build/ext-all-debug.js"></script>
    <script src="/Content/ExtJs/build/classic/locale/locale-zh_CN.js"></script>
    <link href="/Content/ExtJs/build/classic/locale/theme-crisp/resources/theme-crisp-all.css" rel="stylesheet" />
    <link href="~/Content/TagCloud.css" rel="stylesheet" />
    <script src="~/Abp/Framework/scripts/abp.js"></script>
    <script src="~/Abp/Framework/scripts/libs/abp.jquery.js"></script>
    <script src="/AbpScripts/GetScripts" type="text/javascript"></script>
    <script src="/api/serviceProxies/GetAll"></script>
    <script src="~/Ext/ux/GSE/chromeGse.js"></script>
    <style>
        /*.x-hidden {
            display: none;
        }*/
        .inline_checkbox {
            display: inline-block !important;
            margin-right: 10px !important;
        }

        .thumb {
            background: #dddddd;
            padding-bottom: 0;
        }


            .thumb img {
                height: 60px;
                width: 80px;
            }

        .thumb-wrap {
            float: left;
            margin-right: 0;
        }

            .thumb-wrap span {
                display: block;
                overflow: hidden;
                text-align: center;
                width: 86px; /* for ie to ensure that the text is centered */
            }

        .x-item-over {
            border: 1px solid #dddddd;
            background: #efefef repeat-x left top;
        }

        .x-item-selected {
            background: #eff5fb no-repeat right bottom;
            border: 1px solid #99bbe8;
        }

            .x-item-selected .thumb {
                background: transparent;
            }


        .x-view-selector {
            position: absolute;
            left: 0;
            top: 0;
            width: 0;
            border: 1px dotted;
            opacity: .5;
            -moz-opacity: .5;
            filter: alpha(opacity=50);
            zoom: 1;
            background-color: #c3daf9;
            border-color: #3399bb;
        }

        .text_list_bullets {
            background: url(/Content/images/text_list_bullets.png)left top no-repeat;
        }

        .pageword {
            background: url(/Content/images/page_word.png)left top no-repeat;
        }

        .phaseFinsh {
            background-color: green;
        }

        .projecttask {
            background-color: green;
            color: white;
        }

        .phaseUnFinsh {
            background-color: red;
            color: white;
        }

        .phaseUnKown {
            /*background-color: yellow;*/
            color: black;
        }

        .bookopen {
            background: url(/Content/images/book_open.png)left top no-repeat;
        }

        .download {
            background: url(/Content/images/download.gif)left top no-repeat;
        }

        .database {
            background: url(/Content/images/database_lightning.png)left top no-repeat;
        }

        .add {
            background: url(/Content/images/add.png) left top no-repeat;
        }

        .chanelDelete {
            background: url(/Content/images/arrow_refresh_small.png) left top no-repeat;
        }

        .paste {
            background: url(/Content/images/page_paste.png) left top no-repeat;
        }


        .detial {
            background: url(/Content/images/table.png) left top no-repeat;
        }

        .print {
            background: url(/Content/images/printer.png) left top no-repeat;
        }

        .edit {
            background: url(/Content/images/edit.gif) left top no-repeat;
        }

        .delete {
            background: url(/Content/images/delete.gif) left top no-repeat;
        }

        .search {
            background: url(/Content/images/zoom.png) left top no-repeat;
        }

        .accept {
            background: url(/Content/images/accept.png) left top no-repeat;
        }

        .lock {
            background: url(/Content/images/lock.png) left top no-repeat;
        }

        .save {
            background: url(/Content/images/page_save.png) left top no-repeat;
        }

        .share {
            background: url(/Content/images/shape_handles.png) left top no-repeat;
        }

        .shared {
            background: url(/Content/images/shape_group.png) left top no-repeat;
        }

        .doorout {
            background: url(/Content/images/door_out.png) left top no-repeat;
        }

        .resh {
            background: url(/Content/images/arrow_refresh.png) left top no-repeat;
        }

        .cancel {
            background: url(/Content/images/cancel.png) left top no-repeat;
        }

        .view {
            background: url(/Content/images/page_white_find.png);
        }

        .audit {
            background: url(/Content/images/user.png);
        }

        .page_white_get {
            background: url(/Content/images/page_white_get.png);
        }

        .fixedVersion {
            background: url(/Content/images/flag_yellow.png);
        }

        .attach {
            background: url(/Content/images/attach.png);
        }

        .download {
            background: url(/Content/images/download.gif);
        }


        .user_suit {
            background: url(/Content/images/user_suit.png);
        }

        .cart {
            background: url(/Content/images/cart.png);
        }

        .x-form-itemselector-top {
            background: url(/Content/ExtJs/itemselector/top.gif);
        }

        .x-form-itemselector-bottom {
            background: url(/Content/ExtJs/itemselector/bottom.gif);
        }

        .x-form-itemselector-down {
            background: url(/Content/ExtJs/itemselector/down.gif);
        }

        .x-form-itemselector-remove {
            background: url(/Content/ExtJs/itemselector/left.gif);
        }

        .x-form-itemselector-add {
            background: url(/Content/ExtJs/itemselector/right.gif);
        }

        .x-form-itemselector-up {
            background: url(/Content/ExtJs/itemselector/up.gif);
        }

        .x-form-display-field {
            word-break: break-all;
            word-wrap: break-all;
        }
    </style>

</head>
<body>
</body>
</html>

<script type="text/javascript">
    var appLocalizationSource = abp.localization.getSource('AbpZeroTemplate');  //xml文件名
    function localize() {
        return appLocalizationSource.apply(this, arguments);
    };

    var App = $.extend({}, App);

    App.AjaxPost = function (url, params, callback, errorcallback) {

        $.ajax({
            url: url,
            contentType: 'application/json',
            type: "post",
            data: JSON.stringify(params),
            success: function (r) {
                if (r.success) {
                    callback(r);
                } else {
                    if (errorcallback == undefined) {
                        console.log(r);
                        Ext.Msg.alert("Message", r.error.message + "<br>" + r.error.details);
                    } else {
                        errorcallback(r);
                    }

                }
            }
        });
    }


    App.AjaxPut = function (url, params, callback) {

        $.ajax({
            url: url,
            contentType: 'application/json',
            type: "put",
            data: JSON.stringify(params),
            success: function (r) {
                if (r.success) {
                    callback(r);
                } else {
                    console.log(r);
                    Ext.Msg.alert("Message", r.error.message + "<br>" + r.error.details);
                }
            }
        });
    }

    App.AjaxGet = function (url, callback) {

        $.ajax({
            url: url,
            contentType: 'application/json',
            type: "get",
            success: function (r) {
                if (r.success) {
                    callback(r);
                } else {
                    console.log(r);
                    Ext.Msg.alert("Message", r.error.message + "<br>" + r.error.details);
                }
            }
        });
    }

    App.AjaxDelete = function (url, callback) {

        $.ajax({
            url: url,
            contentType: 'application/json',
            type: "DELETE",
            success: function (r) {
                if (r.success) {
                    callback(r);
                } else {
                    console.log(r);
                    Ext.Msg.alert("Message", r.error.message + "<br>" + r.error.details);
                }
            }
        });
    }

    App.AjaxRemove = function (url, params, callback) {

        $.ajax({
            url: url,
            contentType: 'application/json',
            type: "DELETE",
            data: JSON.stringify(params),
            success: function (r) {
                if (r.success) {
                    callback(r);
                } else {
                    console.log(r);
                    Ext.Msg.alert("Message", r.error.message + "<br>" + r.error.details);
                }
            }
        });
    }

    Ext.Ajax.setDefaultPostHeader("application/json");


    var _loginUserName = '@ViewBag.userName';
    var _loginDeptName = '@ViewBag.deptName';
    var _loginUserId = '@ViewBag.userId';


    Ext.application({
        name: 'app',
        appFolder: '/Ext',
        extend: 'app.Application'
    });

</script>
